package com.zhangtai.modules.dto;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.zhangtai.config.LongJsonDeserializer;
import com.zhangtai.config.LongJsonSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class ContractNewDto {
    @JsonDeserialize(using = LongJsonDeserializer.class)
    @JsonSerialize(using = LongJsonSerializer.class)
    private Long id;
    @JsonDeserialize(using = LongJsonDeserializer.class)
    @JsonSerialize(using = LongJsonSerializer.class)
    private Long oid;
    @ApiModelProperty("工号")
    private String code;
    @ApiModelProperty("姓名")
    private String name;
    @ApiModelProperty("性别 1男 2女")
    private Integer gender;
    @ApiModelProperty("公司id")
    private Long orgId;
    @ApiModelProperty("公司名称")
    private String orgName;
    @ApiModelProperty("部门id")
    private Long unitId;
    @ApiModelProperty("部门名称")
    private String unitName;
    @ApiModelProperty("岗位id")
    private Long jobId;
    @ApiModelProperty("岗位名称")
    private String jobName;
    @ApiModelProperty("入职类型 0:新员工，1：复职员工")
    private String isReinstate;

    @ApiModelProperty("签署原因 （1：入职 2：调动 3：晋升 4：降级 5：离职）")
    private Integer operateType;
    @ApiModelProperty("入职时间")
    private Date hiredate;
    @ApiModelProperty("签约类型 （1：新签 2：续签 3：解除 4:调动新签）")
    private Integer type;
    @ApiModelProperty("合同类型 1:劳动合同 2：实习协议  3：退休返聘协议  4 解除协议")
    private String contractType;
    @ApiModelProperty("新合同开始时间")
    private Date newContractBeginDate;
    @ApiModelProperty("用工类型 0：全日制用工，1：非全日制用工，2：劳务派遣用工 ，3：退休返聘，4：管培生，5：实习生")
    private String jobType;
    @ApiModelProperty("e签宝流程id")
    private Integer esignFlowId;
}
